package com.rfid.acs.net;


import com.rfid.acs.bean.BookBean;
import com.rfid.acs.net.bean.ReaderInfoBean;
import com.rfid.acs.net.bean.RestoreBookBean;

import java.util.List;

import io.reactivex.Observable;

public interface IBookNet {

    Observable<BookBean> searchBookWithBarcode(String barcode);

    Observable<BookBean> borrowBook(String barcode, String readerNo, String password);

    Observable<RestoreBookBean> restoreBook(String barcode);

    Observable<ReaderInfoBean> searchReaderInfo(String readerNo, String password);

    Observable<List<BookBean>> searchBooksWithBarcode(List<String> strings);

    Observable<BookBean> renewalBook(String barcode, String readerNo, String password);
}
